package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "plugins")
public class PluginsModel
{
    private List<PluginModel> pluginModels = new ArrayList<PluginModel>();

    @XmlElement(name = "plugin")
    public List<PluginModel> getPluginModels()
    {
        return pluginModels;
    }

    public void setPluginModels(List<PluginModel> pluginModels)
    {
        this.pluginModels = pluginModels;
    }

    public void addPlugin(PluginModel pluginModel)
    {
        pluginModels.add(pluginModel);
    }
}
